class CreateCars < ActiveRecord::Migration
  def change
    create_table :cars do |t|
      t.string :name
      t.string :brand
      t.string :version_main
      t.string :version_sub
      t.string :plate_number
      t.boolean :attached
      t.string :engine_number
      t.string :frame_number
      t.date :register_date
      t.string :auto_type
      t.string :color
      t.string :owner_name
      t.string :owner_mobile
      t.date :inspection_peroid_of_validity

      t.timestamps null: false
    end
  end
end
